<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>raise_expectation_error (Spec::Mocks::ErrorGenerator)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre><span class="ruby-comment cmt"># File vendor\plugins\rspec/lib/spec/mocks/error_generator.rb, line 25</span>
      <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">raise_expectation_error</span>(<span class="ruby-identifier">sym</span>, <span class="ruby-identifier">expected_received_count</span>, <span class="ruby-identifier">actual_received_count</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
        <span class="ruby-identifier">__raise</span> <span class="ruby-node">&quot;#{intro} expected :#{sym}#{arg_message(*args)} #{count_message(expected_received_count)}, but received it #{count_message(actual_received_count)}&quot;</span>
      <span class="ruby-keyword kw">end</span></pre>
</body>
</html>